package com.minimoment.util.ToolAction;

import com.minimoment.base.BaseAction;
import com.minimoment.model.domain.Screenings;
import com.minimoment.model.service.ScreeningsService;


/**
 * Created by etund on 2014/11/8.
 */
public class SelfDefineUtil  {
//    private List<Screenings> screeningses = new ArrayList<Screenings>();
//    public Integer getMovieSize(Long theaterId){
//        if (theaterId==null)
//            return 0;
//        Long[] scids = null;
//        Long[] movieIds = null;
//        screeningses = this.screeningsService.getCurrentByTheaterId(theaterId);
//
//        scids = new Long[screeningses.size()];
//        for (int i = 0;i<screeningses.size();i++){
//            Screenings screenings = screeningses.get(i);
//            scids[i] = screenings.getId();
//        }
//        screeningsItems = this.screeningsItemService.getScreeeningsItemBySID(scids);
//        scids = new Long[screeningsItems.size()];
//        for(int i = 0;i<screeningsItems.size();i++){
//            ScreeningsItem screeningsItem = screeningsItems.get(i);
//            scids[i] = screeningsItem.getScreenings().getId();
//        }
//        /**
//         * 在screenings表里面取得movieId
//         */
//        screeningses  = this.screeningsService.findByIds(scids);
//        movieIds = new Long[screeningses.size()];
//        return movieIds.length;
//    }
}
